package com.ltkj.baseplatform.domain;

import com.ltkj.common.core.annotation.Excel;
import com.ltkj.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 综合推荐分类对象 home_recommend_type
 * 
 * @author liupf
 * @date 2023-09-01
 */
@ApiModel(value = "综合推荐分类")
public class HomeRecommendType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    private Long id;

    /** 类型名称 */
    @Excel(name = "类型名称")
    @ApiModelProperty("类型名称")
    private String typeName;

    /** 上级id */
    @Excel(name = "上级id")
    @ApiModelProperty("上级id")
    private Long parentId;

    /** 跳转类型(0,小程序页面；1,url) */
    @Excel(name = "跳转类型(0,小程序页面；1,url)")
    @ApiModelProperty("跳转类型(0,小程序页面；1,url)")
    private Integer linkType;

    /** 跳转链接 */
    @Excel(name = "跳转链接")
    @ApiModelProperty("跳转链接")
    private String linkAddr;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty("排序")
    private Long sortNum;

    /** 是否删除 */
    @ApiModelProperty("是否删除")
    private String isDel;

    /** 子分类 */
    private List<HomeRecommendType> children = new ArrayList<>();

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setLinkType(Integer linkType) 
    {
        this.linkType = linkType;
    }

    public Integer getLinkType() 
    {
        return linkType;
    }
    public void setLinkAddr(String linkAddr) 
    {
        this.linkAddr = linkAddr;
    }

    public String getLinkAddr() 
    {
        return linkAddr;
    }
    public void setSortNum(Long sortNum) 
    {
        this.sortNum = sortNum;
    }

    public Long getSortNum() 
    {
        return sortNum;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    public List<HomeRecommendType> getChildren() {
        return children;
    }

    public void setChildren(List<HomeRecommendType> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeName", getTypeName())
            .append("parentId", getParentId())
            .append("linkType", getLinkType())
            .append("linkAddr", getLinkAddr())
            .append("sortNum", getSortNum())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("isDel", getIsDel())
            .append("remark", getRemark())
            .toString();
    }
}
